package com.neusoft.di.entity.error;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import reactor.core.publisher.Mono;

/**
 * @program: learn
 * @description:
 * @author: Jingdi.Duan ,duanjingdi@msn.com
 * @create: 2024-07-08 16:26
 **/
@ControllerAdvice
public class GlobalErrorControllerAdvice {
    // ...

    @ExceptionHandler
    public Mono<String> handle(Exception ex) {

        return Mono.just("error");
        // ...
    }
}
